projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
913f26c
)
(xfont_list): Try an alias.
author
Kenichi Handa
<handa@m17n.org>
Tue, 3 Jun 2008 05:57:28 +0000
(
05:57
+0000)
committer
Kenichi Handa
<handa@m17n.org>
Tue, 3 Jun 2008 05:57:28 +0000
(
05:57
+0000)
src/xfont.c
patch
|
blob
|
history
diff --git
a/src/xfont.c
b/src/xfont.c
index e6f0bde5114b83d1c1e69e4ae9b7a7dc2e93573f..8684af43122c575f7398c95c17455dce9ad2e88d 100644
(file)
--- a/
src/xfont.c
+++ b/
src/xfont.c
@@
-345,6
+345,7
@@
xfont_list (frame, spec)
}
if (NILP (list) && ! NILP (registry))
{
+ /* Try alternate registries. */
Lisp_Object alter;
if ((alter = Fassoc (SYMBOL_NAME (registry),
@@
-365,6
+366,13
@@
xfont_list (frame, spec)
}
}
}
+ if (NILP (list))
+ {
+ /* Try alias. */
+ val = assq_no_quit (QCname, AREF (spec, FONT_EXTRA_INDEX));
+ if (CONSP (val) && STRINGP (XCDR (val)))
+ list = xfont_list_pattern (frame, display, SDATA (XCDR (val)));
+ }
return list;
}